<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AlibabaCloud\Client\Regions;

class LocationServiceRequest extends \AlibabaCloud\Client\Request\RpcRequest
{
    public function __construct(\AlibabaCloud\Client\Request\Request $request, $domain)
    {
        parent::__construct();
        $this->product("Location");
        $this->version("2015-06-12");
        $this->action("DescribeEndpoints");
        $this->regionId("cn-hangzhou");
        $this->format("JSON");
        $this->options["query"]["Id"] = $request->realRegionId();
        $this->options["query"]["ServiceCode"] = $request->serviceCode;
        $this->options["query"]["Type"] = $request->endpointType;
        $this->client($request->client);
        $this->host($domain);
        if(isset($request->options["timeout"])) {
            $this->timeout($request->options["timeout"]);
        }
        if(isset($request->options["connect_timeout"])) {
            $this->connectTimeout($request->options["connect_timeout"]);
        }
    }
}

?>